import request from '@/utils/request'

//
// 箭头函数写法
// 获取用户登录信息
export const login = data => request.post('/sys/login', data)// axios.get
// 获取用户个人信息接口
export const userInfoRequest = () => request.post('/sys/profile')

export const userPhotoRequest = id => request.get(`/sys/user/${id}`)

export const assignRoleRequest = data => request.put(`/sys/user/assignRoles`, data)

// export const roleInfoDetailRequest = id => request.put(`/sys/user/assignRoles`)
